package com.patterns.factory.SingletonFactory;

/**
 * Created by Xiao Yiyun on 2017/4/14.
 */
public class Client {

    public static void main(String[] args) {

        Singleton1 singleton1 = SingletonFactory.getSingleton1();
        Singleton2 singleton2 = SingletonFactory.getSingleton2();
        Singleton3 singleton3 = SingletonFactory.getSingleton3();
        singleton1.show();
        singleton2.show();
        singleton3.show();
    }
}
